package Controller
{
	import Model.ComplexShading;
	import Model.ComplexSolidComponent;
	import Model.TransparentComponent;
	
	import mx.core.FlexGlobals;

	public class ComplexSolidComponentController
	{
		public function ComplexSolidComponentController()
		{
		}
		
		public function updateComplexSolidComponentOrientation(orientation:Number, complexSolidComponent:ComplexSolidComponent):void
		{
			complexSolidComponent.orientation = orientation;
		}
		
		public function addDoorToComplexSolidComponent(door:TransparentComponent, complexSolidComponent:ComplexSolidComponent):void
		{
			complexSolidComponent.addDoor(door);
		}
		
		public function removeDoorFromComplexSolidComponent(door:TransparentComponent, complexSolidComponent:ComplexSolidComponent):void
		{
			complexSolidComponent.removeDoor(door);
		}
		
		public function addWindowToComplexSolidComponent(window:TransparentComponent, complexSolidComponent:ComplexSolidComponent):void
		{
			complexSolidComponent.addWindow(window);
		}
		
		public function removeWindowFromComplexSolidComponent(window:TransparentComponent, complexSolidComponent:ComplexSolidComponent):void
		{
			complexSolidComponent.removeWindow(window);
		}
		
		public function getWindowByIdAndParentComponent(id:String, complexSolidComponent:ComplexSolidComponent):TransparentComponent
		{
			return complexSolidComponent.getWindowById(id);
		}
		
		public function getDoorByIdAndParentComponent(id:String, complexSolidComponent:ComplexSolidComponent):TransparentComponent
		{
			return complexSolidComponent.getDoorById(id);
		}
	}
}